﻿using System;
using System.Collections.Generic;

namespace MinimalistFoodStreet.BackEnd.Infrastructure.EFCore;

/// <summary>
/// 供应商表
/// </summary>
public partial class Supplier
{
    /// <summary>
    /// r,u,d-编号
    /// </summary>
    public int SId { get; set; }

    /// <summary>
    /// r,u-账号编号
    /// </summary>
    public int SAccountId { get; set; }

    /// <summary>
    /// c,r,u-店铺名称
    /// </summary>
    public string SShopName { get; set; } = null!;

    /// <summary>
    /// c,r,u-微信ID
    /// </summary>
    public string SOpenId { get; set; } = null!;

    /// <summary>
    /// c,r,u-供应商地址
    /// </summary>
    public string SAddress { get; set; } = null!;

    /// <summary>
    /// c,r,u-供应商公告
    /// </summary>
    public string? SAnnouncement { get; set; }

    /// <summary>
    /// c,r,u-经营类别,引用字典表
    /// </summary>
    public int SType { get; set; }

    /// <summary>
    /// c,r,u-企业图片(最多20张)
    /// </summary>
    public string SPhoto { get; set; } = null!;

    /// <summary>
    /// c,r,u-企业资质(最多20张)
    /// </summary>
    public string SQualification { get; set; } = null!;

    /// <summary>
    /// c,r,u-企业logo
    /// </summary>
    public string SLogo { get; set; } = null!;

    /// <summary>
    /// c,r,u-企业名称
    /// </summary>
    public string SEnterpriseName { get; set; } = null!;

    /// <summary>
    /// r-创建时间
    /// </summary>
    public DateTime SCreateTime { get; set; }

    /// <summary>
    /// r-修改时间
    /// </summary>
    public DateTime? SUpdateTime { get; set; }

    public virtual ICollection<Good> Goods { get; set; } = new List<Good>();

    public virtual ICollection<OrderDetail> OrderDetails { get; set; } = new List<OrderDetail>();

    public virtual ICollection<Order> Orders { get; set; } = new List<Order>();

    public virtual ICollection<Promotion> Promotions { get; set; } = new List<Promotion>();

    public virtual Account SAccount { get; set; } = null!;

    public virtual Dictionary STypeNavigation { get; set; } = null!;
}
